<div class="modal-content">
	<div class="modal-header">
		<h4 class="modal-title" >编辑教学楼</h4>
		<button type="button" class="close" data-dismiss="modal" aria-label="Close">
			<span aria-hidden="true">×</span>
		</button>
	</div>
	<div class="modal-body" style="height: 450px;overflow: auto;">
		<form>
			<table cellpadding="10px 5px" style="width: 100%;">
				<tr>
					<td>序号：</td>
					<td>
						<input ng-model="form.sort" type="text" class="form-control"/>
					</td>
					<td>教室代码：</td>
					<td>
						<input ng-model="form.code" type="text" class="form-control"  form-check="must" form-check-alert="教室代码不能为空"/>
					</td>
				</tr>
				<tr>
					<td>教室名称：</td>
					<td>
						<input ng-model="form.name" type="text" class="form-control"  form-check="must" form-check-alert="教室名称不能为空"/>
					</td>
					<td>教室简称：</td>
					<td>
						<input ng-model="form.abbreviation" type="text" class="form-control" />
					</td>
				</tr>
				<tr>
					<td>校区：</td>
					<td>
						<select class="form-control" ng-options="unit.id as unit.showname for unit in unitList" ng-model="form.fk_unit" form-check="must" form-check-alert="校区不能为空" ng-change="findBuilding()">
							<option value="">==请选择==</option>
						</select>
					</td>
					<td>教学楼：</td>
					<td>
						<select class="form-control" ng-options="building.id as building.name for building in buildingList" ng-model="form.fk_teaching_building">
							<option value="">==请选择==</option>
						</select>
					</td>
				</tr>
				<tr>
					<td>楼层：</td>
					<td>
						<input ng-model="form.floor" type="text" class="form-control" />
					</td>
					<td>教室类型：</td>
					<td>
						<select class="form-control" ng-options="type.id as type.name for type in typeList" ng-model="form.type" form-check="must" form-check-alert="教室类型不能为空">
							<option value="">==请选择==</option>
						</select>
					</td>
				</tr>
				<tr>
					<td>任务数：</td>
					<td>
						<input ng-model="form.task_num" type="text" class="form-control"   form-check="must" form-check-alert="任务数不能为空"/>
					</td>
					<td>上课容量：</td>
					<td>
						<input ng-model="form.class_capacity" type="text" class="form-control"   form-check="must" form-check-alert="上课容量不能为空"/>
					</td>
				</tr>
				<tr>
					<td>考试容量：</td>
					<td>
						<input ng-model="form.exam_capacity" type="text" class="form-control"   form-check="must" form-check-alert="考试容量不能为空"/>
					</td>
					<td>最大容量：</td>
					<td>
						<input ng-model="form.max_capacity" type="text" class="form-control"   form-check="must" form-check-alert="最大容量不能为空"/>
					</td>
				</tr>
				<tr>
					<td>排课时检测冲突：</td>
					<td>
						<select class="form-control" ng-model="form.ifclash" form-check="must" form-check-alert="排课时检测冲突不能为空">
							<option value="0">是</option>
							<option value="1">否</option>
						</select>
					</td>
					<td>使用状态：</td>
					<td>
						<select class="form-control" ng-model="form.use_status" form-check="must" form-check-alert="使用状态不能为空">
							<option value="1">启用</option>
							<option value="2">禁用</option>
						</select>
					</td>
				</tr>
				<tr>
					<td>备注：</td>
					<td colspan="3">
						<input ng-model="form.ramarks" type="text" class="form-control" />
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div class="modal-footer">
		<button ng-click="saveForm()" type="button" class="btn btn-success"><i class="iconfont icon-correct"></i>&nbsp;保存</button>
	</div>
</div>